import Vue from 'vue'
import dt from '@dt/dt'
//import '@/mixins/iviewBase.css'
import {
  Button,
  ButtonGroup,
  Table,
  Form,
  Input,
  FormItem,
  Icon,
  Row,
  Col,
  Layout,
  Collapse,
  Divider,
  Cell,
  Menu,
  Submenu,
  MenuItem,
  Tabs,
  TabPane,
  Dropdown,
  Page,
  Breadcrumb,
  Badge,
  Anchor,
  AnchorLink,
  Steps,
  Step,
  LoadingBar,
  Radio,
  Checkbox,
  CheckboxGroup,
  Select,
  Option,
  AutoComplete,
  Slider,
  DatePicker,
  TimePicker,
  Cascader,
  InputNumber,
  Upload,
  ColorPicker,
  Alert,
  Message,
  Notice,
  Modal,
  Drawer,
  Tree,
  Tooltip,
  Poptip,
  Progress,
  Tag,
  Carousel,
  CarouselItem,
  Timeline,
  TimelineItem,
  Time,
  Affix,
  Spin,
  MenuGroup,
  BreadcrumbItem,
  RadioGroup,
  Sider,
  Avatar,
  OptionGroup,
  DropdownMenu,
  Switch,
  Transfer,
  Panel,
  Circle
} from 'view-design'

Vue.prototype.$Message = Message
Vue.prototype.$Notice = Notice
Vue.prototype.$Modal = Modal
Vue.prototype.$Spin = Spin
Vue.prototype.$Message.config({
  duration: 3
})
dt.ui = {
  Message
}

Vue.component('Button', Button)
Vue.component('i-circle', Circle)
Vue.component('ButtonGroup', ButtonGroup)
Vue.component('Table', Table)
Vue.component('Form', Form)
Vue.component('Input', Input)
Vue.component('FormItem', FormItem)
Vue.component('Icon', Icon)
Vue.component('Row', Row)
Vue.component('Col', Col)
Vue.component('Layout', Layout)
Vue.component('Collapse', Collapse)
Vue.component('Panel', Panel)
Vue.component('Divider', Divider)
Vue.component('Cell', Cell)
Vue.component('Menu', Menu)
Vue.component('Submenu', Submenu)
Vue.component('MenuItem', MenuItem)
Vue.component('Tabs', Tabs)
Vue.component('TabPane', TabPane)
Vue.component('Dropdown', Dropdown)
Vue.component('Page', Page)
Vue.component('Breadcrumb', Breadcrumb)
Vue.component('Badge', Badge)
Vue.component('Anchor', Anchor)
Vue.component('AnchorLink', AnchorLink)
Vue.component('Steps', Steps)
Vue.component('Step', Step)
Vue.component('LoadingBar', LoadingBar)
Vue.component('Radio', Radio)
Vue.component('Checkbox', Checkbox)
Vue.component('CheckboxGroup', CheckboxGroup)
Vue.component('Select', Select)
Vue.component('Option', Option)
Vue.component('AutoComplete', AutoComplete)
Vue.component('Slider', Slider)
Vue.component('DatePicker', DatePicker)
Vue.component('TimePicker', TimePicker)
Vue.component('Cascader', Cascader)
Vue.component('InputNumber', InputNumber)
Vue.component('Upload', Upload)
Vue.component('ColorPicker', ColorPicker)
Vue.component('Alert', Alert)
Vue.component('Notice', Notice)
Vue.component('Modal', Modal)
Vue.component('Drawer', Drawer)
Vue.component('Tree', Tree)
Vue.component('Tooltip', Tooltip)
Vue.component('Poptip', Poptip)
Vue.component('Progress', Progress)
Vue.component('Tag', Tag)
Vue.component('Carousel', Carousel)
Vue.component('CarouselItem', CarouselItem)
Vue.component('Timeline', Timeline)
Vue.component('TimelineItem', TimelineItem)
Vue.component('Time', Time)
Vue.component('Affix', Affix)
Vue.component('Spin', Spin)
Vue.component('MenuGroup', MenuGroup)
Vue.component('BreadcrumbItem', BreadcrumbItem)
Vue.component('RadioGroup', RadioGroup)
Vue.component('Sider', Sider)
Vue.component('Avatar', Avatar)
Vue.component('OptionGroup', OptionGroup)
Vue.component('DropdownMenu', DropdownMenu)
Vue.component('i-switch', Switch)
Vue.component('Transfer', Transfer)
